{% extends "../base.html" %}
{% block head %} 
<script type="text/javascript" charset="utf-8"  src="{{handler.static_url}}/editor/editor_config.js"></script>
<script type="text/javascript" src="{{handler.static_url}}/editor/editor_ui_all_min.js"></script>
<script type="text/javascript" src="{{handler.static_url}}/js/forum.js"></script>
<link rel="stylesheet" type="text/css" href="{{handler.static_url}}/editor/themes/default/ueditor.css"/>
<link rel="stylesheet" type="text/css" href="{{handler.static_url}}/editor/themes/simple/ueditor.css"/>
<link rel="stylesheet" type="text/css" href="{{handler.static_url}}/css/forum.css"/>
 
{% end %}
 

{% block body %} 
<div class="container">

<div class="">  

<div class="editor-region clearfix">
	<div class="title clearfix"> 
		<input id="title" type="text" class="title" placeholder="标题"> 
	</div> 
	
	<ul id="category" class="category">  
		<li onclick="categoryClicked(this);" value="1"><a href="#">调研问答</a></li>
		<li class="active" onclick="categoryClicked(this);" value="2"><a href="#">经验分享</a></li>
		<li onclick="categoryClicked(this);" value="3"><a href="#">金融大杂烩</a></li>
		<li onclick="categoryClicked(this);" value="4"><a href="#">站务/建议</a></li> 
	</ul> 
	<div class="clearfix">
		<div id="editor" class="editor"></div>
		<div class="tools">
			<ul>
				<li>
				<img src="{{handler.static_url}}/img/editor/artical.gif">
				<span>相关文章</span>
				</li>
				<li>
				<img src="{{handler.static_url}}/img/editor/finance.gif">
				<span>股票走势</span>
				</li>
				<li>
				<img src="{{handler.static_url}}/img/editor/vote.gif">
				<span>插入投票</span>
				</li>
				<li>
				<img src="{{handler.static_url}}/img/editor/template.gif">
				<span>插入模板</span>
				</li>
				<li>
				<img src="{{handler.static_url}}/img/editor/upload.png">
				<span>上传附件</span>
				</li>
				<li>
				<img src="{{handler.static_url}}/img/editor/tag.png">
				<span>提取标签</span>
				</li>
			</ul>
		</div> 
	</div>
	<div class="tags-region clearfix"> 
		<div class="tag-editor clearfix">
			<ul id="tags" class="tags">
				
			</ul> 
			<input type="text" onfocus="taggingRecOpen();" onkeydown="taggingKeydown(event,this)" placeholder="添加标签">
		</div>
		<div id="tag-rec" class="rec hidden">
			<span class="close" onclick="taggingRecClose(this);">×</span> 
			<div class="tags clearfix">
				<span>推荐热门标签：</span>
				<ul>
					{% for i in range(12) %}
					<li><a href="#" onclick="taggingAdd(this);return false;">中国水利</a></li> 
					{% end %} 
				</ul>
			</div>
			<div class="tags clearfix">
				<span>使用过的标签：</span>
				<ul>
					{% for i in range(12) %}
					<li><a href="#" onclick="taggingAdd(this);return false;">广汇股份</a></li> 
					{% end %} 
				</ul>
			</div>
		</div> 
	</div>
	<div class="command">
		<a href="#" class="btn success" onclick="post();return false;">提交发布</a>
	</div>
</div>



</div>
<script type="text/javascript" charset="utf-8">
    var editor = initEditor('editor');
    
</script>  
</div>  
{%end %}